package com.chen.user.service;


import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.chen.user.entity.HotelBooking;
import com.chen.user.entity.Reservation;
import com.chen.user.mapper.HotelBookingOrderMapper;
import com.chen.user.mapper.ResverMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResverService {

    @Autowired
    private ResverMapper resverMapper;

    @Autowired
    private HotelBookingOrderMapper hotelBookingOrderMapper;

    public List<Reservation> getOrderInfoPage() {

        List<Reservation> reservationList = resverMapper.getOrderInfoPage();
        return reservationList;
    }

    public Reservation getSelectById(Integer id) {
        Reservation reservation = resverMapper.getSelectById(id);
        return reservation;
    }

    public List<HotelBooking> getBookingOrderInfoPage() {
        List<HotelBooking> hotelBookingList = hotelBookingOrderMapper.selectList(null);
        return hotelBookingList;
    }
}
